﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;

namespace homework10
{
    public class School
    {
        public int SchoolId { get; set; }
        public string Name { get; set; }
        public List<Class> Classes { get; set; }
        public override string ToString()
        {
            return $"SchoolId:{ SchoolId.ToString()},Name:{Name}";
        }
    }

    public class Class
    {
        public int ClassId { get; set; }
        public string Name { get; set; }
        public int SchoolId { get; set; }
        public School School { get; set; }
        public List<Student> Students { get; set; }
        public override string ToString()
        {
            return $"SchoolId:{SchoolId.ToString()},ClassId:{ClassId.ToString()},Name:{Name}";
        }
    }

    public class Student
    {
        public int StudentId { get; set; }
        public string Name { get; set; }
        public string Gender { get; set; }
        public DateTime EnrollDate { get; set; }

        public int ClassId { get; set; }
        public Class Class { get; set; }
        public override string ToString()
        {
            return $"ClassId:{ClassId.ToString()},StudentId:{StudentId.ToString()},Name:{Name},Gender:{Gender},EnrollDate:{EnrollDate.ToString()}";
        }
    }

    public class Log
    {
        public int LogId { get; set; }
        public string Operation { get; set; }
        public DateTime Timestamp { get; set; }
    }
}
